package com.tm.payment.util;

public class AjaxResult {
    private boolean success;
    private String message;
    private Object data;

    public static AjaxResult success(Object data) {
        AjaxResult result = new AjaxResult();
        result.success = true;
        result.data = data;
        return result;
    }

    public static AjaxResult error(String message) {
        AjaxResult result = new AjaxResult();
        result.success = false;
        result.message = message;
        return result;
    }
}
